<!DOCTYPE HTML>
<html>
  
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="common/js/form_init.js" id="form_init_script"
    data-name="">
    </script>
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css">
  <style>
    body {
      padding-top: 60px;
      padding-bottom: 40px;
    }
  </style>
  <!--<link rel="stylesheet" href="<?php /*echo base_url();*/?>/assets/css/bootstrap-responsive.min.css">-->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/css/main.css">

  <script src="<?php echo base_url();?>assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  <script src="<?php echo base_url();?>assets/js/restaurant.js"></script>
  <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/test/default.css?version=837"
    id="theme" />
    <title>
    <?php if ($isedit){?>
      Chỉnh sửa món ăn
    <?php }else {?>
      Thêm món ăn
    <?php }?>
    </title>
  </head>
  
  <body>
    <?php $this->load->view('supermenu');?>

	  <style>#docContainer .fb_cond_applied{ display:none; }</style><noscript><style>#docContainer .fb_cond_applied{ display:inline-block; }</style></noscript><form class="fb-toplabel fb-100-item-column selected-object" id="docContainer"
	action="" enctype="multipart/form-data" method="POST" novalidate="novalidate"
	data-form="preview">
	  <div class="fb-form-header" id="fb-form-header1" style="min-height: 0px;">
	    <a class="fb-link-logo" id="fb-link-logo1" style="max-width: 104px;" target="_blank"><img title="Alternative text" class="fb-logo" id="fb-logo1" style="width: 100%; display: none;" alt="Alternative text" src="common/images/image_default.png"/></a>
	  </div>
	  <div class="section" id="section1">
	    <div class="column ui-sortable" id="column1">
	      <div class="fb-item fb-100-item-column" id="item1">
	        <div class="fb-header">
	          <h2 style="display: inline;">
	          <?php if ($isedit){?>
	            Chỉnh sửa món ăn
	          <?php }else {?>
	            Thêm món ăn
	          <?php }?>
	          </h2>
	        </div>
	      </div>
	      <div class="fb-item fb-100-item-column" id="item2" style="opacity: 1;">
	        <div class="fb-grouplabel">
	          <label id="item2_label_0" style="display: inline;">Tên món ăn</label>
	        </div>
	        <div class="fb-input-box">
	          <?php if ($isedit){?>
	          	  <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" value="<?php echo $info->name; ?>" />
	          <?php }else {?>
		          <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" />
		      <?php }?>
	        </div>
	      </div>
	       <div class="fb-item fb-50-item-column" id="item3">
	        <div class="fb-grouplabel">
	          <label id="item3_label_0" style="display: inline;">Loại món ăn</label>
	        </div>
	        <div class="fb-dropdown">
	          <select name="select3" id="item3_select_1" data-hint="">
	          <?php if ($isedit){?>
	             <?php if (is_array($type_dish)) {?>
	             	<?php foreach ($type_dish as $type) { ?>
	             		<?php if ($type->name == $info->type){ ?>
	             			<option id="item3_0_option" selected="selected" value="<?php echo $type->_id; ?>">
				              <?php echo $type->name; ?>
				            </option>
	             		<?php }else {?>
	             			<option id="item3_0_option" value="<?php echo $type->_id; ?>">
				              <?php echo $type->name; ?>
				            </option>
	             		<?php } ?>
	             	<?php } ?>
	             <?php }?>
		      <?php }else {?>
		     	 <?php if (is_array($type_dish)) {?>
		          	<?php foreach ($type_dish as $type) { ?>
			            <option id="item3_0_option" value="<?php echo $type->_id; ?>">
			              <?php echo $type->name; ?>
			            </option>
		            <?php }?>
		          <?php }?>
		      <?php }?>
	          </select>
	        </div>
	      </div>
	      <div class="fb-item fb-50-item-column" id="item12">
	        <div class="fb-grouplabel">
	          <label id="item12_label_0" style="display: inline;">Hình ảnh</label>
	        </div>
	        <div class="fb-button">
	          <input name="file12" id="item12_file_1" type="file" data-hint="" />
	        </div>
	      </div>
	      <div class="fb-item fb-100-item-column" id="item5">
	        <div class="fb-grouplabel">
	          <label id="item5_label_0" style="display: inline;">Nguyên liệu</label>
	        </div>
	        <div class="fb-textarea">
	         <?php if ($isedit){?>
	         	<textarea name="textarea5" id="item5_textarea_1" style="resize: none;"
		          maxlength="10000" placeholder="" data-hint=""><?php echo $info->material?></textarea>
	         <?php }else {?>
		          <textarea name="textarea5" id="item5_textarea_1" style="resize: none;"
		          maxlength="10000" placeholder="" data-hint=""></textarea>
		     <?php }?>
	        </div>
	      </div>
	      <div class="fb-item fb-100-item-column" id="item7" style="opacity: 1;">
	        <div class="fb-grouplabel">
	          <label id="item7_label_0" style="display: inline;">Chế biến</label>
	        </div>
	        <div class="fb-textarea">
	        <?php if ($isedit){?>
	        	  <textarea name="textarea7" id="item7_textarea_1" style="resize: none;"
		          maxlength="10000" placeholder="" data-hint=""><?php echo $info->cooking;?></textarea>
	        <?php }else {?>
		          <textarea name="textarea7" id="item7_textarea_1" style="resize: none;"
		          maxlength="10000" placeholder="" data-hint=""></textarea>
		    <?php }?>
	        </div>
	      </div>
	      <div class="fb-item fb-100-item-column" id="item8">
	        <div class="fb-grouplabel">
	          <label id="item8_label_0">Đặc trưng</label>
	        </div>
	        <div class="fb-textarea">
	        <?php if ($isedit){?>
	        	<textarea name="textarea8" id="item8_textarea_1" style="resize: none;"
	          	maxlength="10000" placeholder="" data-hint=""><?php echo $info->speciality; ?></textarea>
	        <?php }else {?>
	        	<textarea name="textarea8" id="item8_textarea_1" style="resize: none;"
	          	maxlength="10000" placeholder="" data-hint=""></textarea>
	        <?php }?>
	        </div>
	      </div>
	      <div class="fb-item fb-75-item-column" id="item9">
	        <div class="fb-grouplabel">
	          <label id="item9_label_0" style="display: inline;">Giá</label>
	        </div>
	        <div class="fb-input-box">
	          <?php if ($isedit){?>
	          	  <input name="text9" id="item9_text_1" type="number" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" value="<?php echo $info->cost; ?>" />
	          <?php }else {?>
		          <input name="text9" id="item9_text_1" type="number" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" />
		      <?php }?>
	        </div>
	      </div>
	      <div class="fb-item fb-25-item-column" id="item11">
	        <div class="fb-grouplabel">
	          <label id="item11_label_0" style="display: inline;">Đơn vị tính</label>
	        </div>
	        <div class="fb-input-box">
	          <?php if ($isedit){?>
	              <input name="text11" id="item11_text_1" type="text" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" value="<?php echo $info->unit; ?>" />
	          <?php }else {?>
		          <input name="text11" id="item11_text_1" type="text" maxlength="254" placeholder=""
		          data-hint="" autocomplete="off" />
		      <?php }?>
	        </div>
	      </div>
	    </div>
	  </div>
	  <div class="fb-captcha fb-item-alignment-center" id="fb-captcha_control"
	  style="display: none; cursor: default;">
	    <img src="editordata/images/recaptchawhite.png" />
	  </div>
	  <div class="fb-item-alignment-left fb-footer" id="fb-submit-button-div"
	  style="min-height: 1px;">
	    <input class="fb-button-special" id="fb-submit-button" type="submit" data-regular="url('<?php echo base_url();?>assets/css/images/btn_submit.png')"
	    value="OK" />
	  </div>
	</form>
</body>
</html>